import Mock from 'mockjs'

const url = {
    tableDataOne: '/test1',
    tableDataTwo: '/test2',
    tableDataThi: '/order',
	orderDetail: '/order/detail',
	user: '/user',
	role: '/role'
}
let Menu = [
	Mock.mock(url.user, {
		'code': 0,
		'message': '获取数据成功',
		'result': {
			'list|25':[{
				'id|+1': 1,
				'ismubiao|0-1':1,
				'username|1': '@cname',
				'sex|1-2': 1,
				'state|1-5': 1,
				'interes|1-8': 1,
				'isMarried|0-1': 1,
				'birthday': '2000-01-01',
				'address|1': ['New York John', 'LunDon Brown', 'Canada kangkang'],
				'time': '08:00:00'
			}],
			page: 1,
			page_size: 5,
			total: 25
		}
	}),
	Mock.mock(url.tableDataTwo, {
		'code': 0,
		'message': '获取数据成功',
		'result': {
			'list|25':[{
				'key|+1': 1,
				'name|1': ['John', 'Brown', 'kangkang'],
				'age|+10': 23,
				'sex|1': [1,2],
				'sta|1': [1,2,3,4,5],
				'address|1': ['New York John', 'LunDon Brown', 'Canada kangkang'],
				'tags|1': [['nice', 'developer'],['loser'],['cool', 'teacher']]
			}],
			page: 1,
			page_size: 5,
			total: 25
		}
	}),
	Mock.mock(url.tableDataOne, {
		'code': 0,
		'message': '获取数据成功',
		'result': {
			'list|25':[{
				'key|+1': 1,
				'name': '@city',
				'mode|1-2': 1,
				'op_mode|1-2': 1,
				'franchisee_id': 77,
				'franchisee_name': '青桔自营',
				'city_admins|1-2':[{
					'user_name': '@cname',
					'user_id|+1': 10001
				}],
				'open_time': '@datetime',
				'sys_user_name': "@cname",
				'update_time': 1520476737000
			}],
			page: 1,
			page_size: 5,
			total: 25
		}
	}),
	Mock.mock(url.tableDataThi, {
		'code': 0,
		'message': '获取数据成功',
		'result': {
			'list|25':[{
				'id': 2959165,
				'order_sn': /T180[0-9]{6}/,
				'bike_sn': '800116090',
				'user_id': 908352,
				'user_name': '@cname',
				'mobile': /1[0-9]{10}/,
				'distance': 2000,
				'total_time': 4000,
				'status|1-2': 1,
				'start_time': '@datetime',
				'end_time': '@datetime',
				'total_fee': 1000,
				'user_pay': 300
			}],
			page: 1,
			page_size: 5,
			total: 25
		}
	}),
	Mock.mock(url.orderDetail, {
		'code': 0,
		'message': '获取数据成功',
		'result': {
			'status': 2,
			'order_sn': 'T18063543165456KJ',
			'bike_sn': '800116090',
			'mode|1-2': 1,
			'start_location': '北京市昌平区回龙观东大街',
			'end_location': '北京市海淀区奥林匹克公园',
			'city_id': 1,
			'mobile': '18359101226',
			'user_name': '@cname',
			'distance': 26000,
			'bike_gps': '116.398806, 40.008637',
			'start_time': '@datetime',
			'end_time': '@datetime',
			'total_time': 224,
			
			'position_list':[{
				'lon': 116.361221,
				'lat': 40.043776
			},{
				'lon': 116.363736,
				'lat': 40.038086
			},{
				'lon': 116.364599,
				'lat': 40.036484
			},{
				'lon': 116.373438,
				'lat': 40.03538
			},{
				'lon': 116.377966,
				'lat': 40.036263
			},{
				'lon': 116.379762,
				'lat': 40.03654
			}]
		}
	}),
	Mock.mock(url.role, {
		'code': 0,
		'message': '获取数据成功',
		'result': {
			'list|25':[{
				'id|+1': 1,
				'role_name|1': ['管理人员', '财务专员', '市场专员'],
				'create_time': 1520476737000,
				'status|1-2': 1,
				'authorize_time': 1551977747000,
				'authorize_user_name': '@cname'
			}],
			page: 1,
			page_size: 5,
			total: 25
		}
	}),
]
export default Menu;